package com.sf.osms.dep.webservice.wqs;

import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.apache.cxf.interceptor.LoggingOutInterceptor;
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

public class Test {
	
	public static void main(String[] args) {
		JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
		String wqsAddress = "";
		factory.setAddress(wqsAddress);
		factory.setServiceClass(IWaybillInfoService.class);
		factory.getOutInterceptors().add(new LoggingOutInterceptor());
		factory.getInInterceptors().add(new LoggingInInterceptor());
		IWaybillInfoService wqs = factory.create(IWaybillInfoService.class);
		Header header = null;
		Shead shead = null;
		Sbody sbody = null;;
		wqs.queryBillInfoAll(header, shead, sbody);
	}
}
